﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraBars.Helpers;
using DevExpress.Skins;
using DevExpress.LookAndFeel;
using DevExpress.UserSkins;
using DevExpress.XtraPivotGrid;
using DoAnQuamLy.GUI;


namespace DoAnQuamLy
{
    public partial class Frm_Main : XtraForm
    {
        public Frm_Main()
        {
            InitializeComponent();
            InitSkinGallery();

        }
        void InitSkinGallery()
        {
            SkinHelper.InitSkinGallery(rgbiSkins, true);
        }

        private void btn_TaoPhieuChi_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_PhieuChi fr_PC = new Frm_PhieuChi();
            fr_PC.MdiParent = this;
            fr_PC.Show();
        }

        private void btn_TaoPhieuThu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_PhieuThu fr_PT = new Frm_PhieuThu();
            fr_PT.MdiParent = this;
            fr_PT.Show();
        }

        private void btn_DanhMucPhieuThu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_DanhMucPhieuThuChi fr_DMPTC = new Frm_DanhMucPhieuThuChi();
            fr_DMPTC.MdiParent = this;
            fr_DMPTC.Show();
        }

        private void btn_ThongKeAnUong_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_ThongKeAnUong fr_TKAU = new Frm_ThongKeAnUong();
            fr_TKAU.MdiParent = this;
            fr_TKAU.Show();
        }

        private void btn_ThongKeDoanhThu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_ThongKeDoanhThu fr_TKDT = new Frm_ThongKeDoanhThu();
            fr_TKDT.MdiParent = this;
            fr_TKDT.Show();
        }

        private void btn_DanhMucKhachHang_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_DanhMucKhachHang fr_DMKH = new Frm_DanhMucKhachHang();
            fr_DMKH.MdiParent = this;
            fr_DMKH.Show();
        }

        private void btn_DanhMucMatHang_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_DanhMucMatHang fr_DMMH = new Frm_DanhMucMatHang();
            fr_DMMH.MdiParent = this;
            fr_DMMH.Show();
        }

        private void btn_DanhMucBanPhong_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_DanhMucBanPhong fr_DMBP = new Frm_DanhMucBanPhong();
            fr_DMBP.MdiParent = this;
            fr_DMBP.Show();
        }

        private void btn_SuDungDichVu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_SuDungDichVu fr_SDDV = new Frm_SuDungDichVu();
            fr_SDDV.MdiParent = this;
            fr_SDDV.Show();
        }

        private void btn_QuanLiBanHang_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_QuanLyBanHang fr_QLBH = new Frm_QuanLyBanHang();
            fr_QLBH.MdiParent = this;
            fr_QLBH.Show();
        }
    }
}